package model.base;
import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;

import enums.MaintainRecordsType;

/**
 * do not modify this file.^_^
 */
@SuppressWarnings("serial")
public abstract class BaseMaintainRecords<M extends BaseMaintainRecords<M>> extends _BaseModel<M> implements IBean {

    /**
     * ID
     */
    public void setId(Long id) {
        set("id", id);
    }

    /**
     * ID
     */
    public Long getId() {
        return getLong("id");
    }
    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        set("createTime", createTime);
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return get("createTime");
    }
    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        set("updateTime", updateTime);
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return get("updateTime");
    }
    /**
     * 点位
     */
    public void setStationId(Long stationId) {
        set("stationId", stationId);
    }

    /**
     * 点位
     */
    public Long getStationId() {
        return getLong("stationId");
    }
    /**
     * 运维公司
     */
    public void setServicerId(Long servicerId) {
        set("servicerId", servicerId);
    }

    /**
     * 运维公司
     */
    public Long getServicerId() {
        return getLong("servicerId");
    }
    /**
     * 记录人
     */
    public void setRecorder(String recorder) {
        set("recorder", recorder);
    }

    /**
     * 记录人
     */
    public String getRecorder() {
        return getStr("recorder");
    }
    /**
     * 类型
     */
    public void setType(Integer type) {
        set("type", type);
    }

    /**
     * 类型
     */
    public Integer getType() {
        return getInt("type");
    }
    /**
     * 因子
     */
    public void setRecordsName(String recordsName) {
        set("recordsName", recordsName);
    }

    /**
     * 因子
     */
    public String getRecordsName() {
        return getStr("recordsName");
    }
    /**
     * 有效期
     */
    public void setDeadline(Date deadline) {
        set("deadline", deadline);
    }

    /**
     * 有效期
     */
    public Date getDeadline() {
        return get("deadline");
    }
    /**
     * 结果
     */
    public void setResult(String result) {
        set("result", result);
    }

    /**
     * 结果
     */
    public String getResult() {
        return getStr("result");
    }

	public boolean isMaintainType(){
        return null != getType() && MaintainRecordsType.getMaintain() == getType() ;
    }

	public void setMaintainType(){
    	setType(MaintainRecordsType.getMaintain());
    }

	public boolean isQualityControlType(){
        return null != getType() && MaintainRecordsType.getQualityControl() == getType() ;
    }

	public void setQualityControlType(){
    	setType(MaintainRecordsType.getQualityControl());
    }

	public boolean isFullCalibrationType(){
        return null != getType() && MaintainRecordsType.getFullCalibration() == getType() ;
    }

	public void setFullCalibrationType(){
    	setType(MaintainRecordsType.getFullCalibration());
    }

	public boolean isCompareType(){
        return null != getType() && MaintainRecordsType.getCompare() == getType() ;
    }

	public void setCompareType(){
    	setType(MaintainRecordsType.getCompare());
    }

	public boolean isQualityCheckType(){
        return null != getType() && MaintainRecordsType.getQualityCheck() == getType() ;
    }

	public void setQualityCheckType(){
    	setType(MaintainRecordsType.getQualityCheck());
    }
}
